Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - added countdown section #160

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Bl20052005
Copy link

Added countdown section, features including:

  • new countdown timer
  • working curved time progression (with boat graphics)
  • split the feature into three categories: before hacking starts, during hacking, after hacking ends
  • responsive sizing of section

Things which may require more work:

  • consolidating css styles (some inline may be moved to classes)
  • refactoring code into separate components (the code is not very neat as of now)
  • testing on boundary conditions (transitioning between before hacking - hacking start)
  • (more boundaries: when switching between different events)
  • finalize start and end time for hacking (waiting on log)
  • finalize schedule (waiting on log)
  • any other bugs in the program I have not discovered or thought about

@Bl20052005 Bl20052005 linked an issue Oct 3, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Oct 3, 2024

Deploy preview for zothacks-site-2023-sanity ready!

Name Sanity Studio
Preview Visit Preview
Commit dc36276

Copy link

github-actions bot commented Oct 3, 2024

Deploy preview for zothacks-site-2023 ready!

Name Hack at UCI Site
Preview Visit Preview
Commit dc36276

}

.countdownMaterial {
// margin-top: 10%;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore: remove commented styling

justify-content: center;
}

@media only screen and (max-width: 400px) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore (repeating): rather than writing out all these media queries, we can use Bootstrap's mixins to handle that for us (refer to other stylesheets using bootstrap.media-breakpoint-up)

(thanks Taesung)


.outerCircle {
background-color: #ffffff;
// border-color: #1a1840;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore: remove commented styling

span {
text-align: center;

@media screen and (max-width: 1000px) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore (repeating): replace media query with bootstrap mixins

);
}

console.log(percentageCrossed);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore: Remove console logging

position: relative;
}

.descriptiveText {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Because this class is used on a div, maybe change the name to description-container or something.

Also, I don't know if camel case class names is standard or having dashes in between words is standard or if there even is a standard.

.outerCircle {
background-color: #ffffff;
// border-color: #1a1840;
border: 5px solid #1a1840;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore (repeating): The color here can be replaced with theme.$lighter-black from the theme scss file

}

.innerCircle {
background-color: #bd5a5a;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore (repeating): this red is also a theme color

}

.outerCircle {
background-color: #ffffff;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore (repeating): The color here can be replaced with theme.$white from the theme scss file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2024] Home: Event Countdown
2 participants